<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>合同配送</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/product.css">
	<link rel="stylesheet" href="css/select.css">
	<style>
		.main-bg1{
			padding-bottom: 0px;
		}
		.content-table-two{
			width: 1080px;
		}
		.content-table-two tbody tr td {
    		max-width: 300px;
    		min-width: 20px; 
    	}
		.content-table-two tbody tr td{
			width: 30px;
			padding-left: 12px;
			padding-right: 12px;
		}
		.content-table-two tbody tr td:first-child{
			width:20px;
		}
		.content-table-two tbody tr td:nth-child(2){
			width:50px;
		}
		.content-table-two tbody tr td:nth-child(3){
			width:165px;
		}
		.content-table-two tbody tr td:nth-child(4){
			width:70px;
		}
		.content-table-two tbody tr td:nth-child(10){
			width:70px;
		}
		.content-btn {
		    padding-bottom: 5px;
		}
		.content-btn> .btn-style-two{
			float: right;
			margin-left: 8px;
		}
		.export-btn {
		    float: left;
		    margin-top: 0px;
			width:50px;
		    margin-right: 12px;
		}
	</style>
</head>
<body>
	<div class="main-content">
		<div class="main-bg1">
			<ul class="product-title clearfix">
				<li class="title-active"><a class="color-operation" href="contractDistribution.html">纸质合同配送</a></li>
				<li><a href="contractDistribution1.html">配送明细</a></li>
			</ul>
			<div class="product-content clearfix">
				<!-- 费用清单 -->
				<div class="product-child">
					<div class="product-child-content">
						<p class="content-title matop">纸质合同配送</p>
						<div class="content-form">
							<form id = "seachContractInbound">
								<ul>
									<li>
										<span class="text-name">项目名称：</span><input type="text">
									</li>
									<li>
										<button class="btn-style-two" id = "seachContractInbound">搜索</button>
										<i class="btn-operation maleft20">重置</i>
									</li>
								</ul>
							</form>
						</div>
						<!-- <div class="content-form">
							<ul>
								<li><span class="text-name">项目名称：</span><input type="text"></li>
								<li>
									<button class="btn-style-two">搜索</button>
									<i class="btn-operation maleft20">重置</i>
								</li>
							</ul>
						</div> -->
						<div class="content-list">
							<div class="info-list">
								<div class="content-btn">
									<i onclick = "ps()" class="export-btn clearfix">配送</i>
									<button class="btn-style-two clearfix">导出</button>
									<button class="btn-style-two clearfix">导入快递单号</button>
								</div>
								<table class="content-table-two" bindClick = "seachContractInbound" bindForm = "seachContractInboundForm" datatable = "true" cellspacing="0" cellpadding="0" dataAction = "/contractInbound/findList">
									<tbody style = "display:none;">
										<th title = "项目编码" name = "projectcode" type = "string"></th>
										<th title = "项目名称" name = "projectname" type = "string"></th>
										<th title = "部门名称" name = "department" type = "string"></th>
										<th title = "总需配送数" name = "total" type = "string"></th>
										<th title = "可配送" name = "total" type = "string"></th>
										<th title = "已配送" name = "dispatchnumber" type = "string"></th>
										<th title = "需配送" name = "total" type = "string"></th>
										<th title = "已入档" name = "filein" type = "string"></th>
										<th title = "已作废" name = "cancel" type = "string"></th>
										<th title = "印刷厂" name = "printer" type = "string"></th>
									<tbody style = "display:none;">
								</table>
								<!-- <table class="content-table-two" cellspacing="0" cellpadding="0">
									<thead>
										<tr>
											<td><input type="checkbox"></td>
											<td>项目编号</td>
											<td>项目名称</td>
											<td>部门名称</td>
											<td>总需配送数</td>
											<td>已配送</td>
											<td>需配送</td>
											<td>已入档</td>
											<td>已作废</td>
											<td>所属印刷厂</td>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>2</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>2</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>2</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
										<tr>
											<td><input type="checkbox"></td>
											<td>23456232</td>
											<td>恒天财富稳盛5号投资基金</td>
											<td>北京第二营业部</td>
											<td>10</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>杭州印刷厂</td>
										</tr>
									</tbody>
								</table> -->
							</div>
						</div>
					</div>	
				</div>
			</div>
		</div>
		<!-- <div class="table-pages clearfix">
			<ul class="pages-list">
				<li><a href=""><</a></li>
				<li><a class="menu-active" href="">1</a></li>
				<li><a href="">2</a></li>
				<li><a href="">3</a></li>
				<li><a href="">...</a></li>
				<li><a href="">20</a></li>
				<li><a href="">></a></li>
			</ul>
		</div> -->
	</div>

	<script src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script src="js/select.jquery.js"></script>
	<script type="text/javascript" src = "js/util.js"></script>
	<script type="text/javascript" src = "js/table.js"></script>
	<script type="text/javascript" src = "js/allProduct.js"></script>
	<script>
		$('.multiselect').multiselect({setMaxOptionNum:4,selectedHtmlValue:''});
		$('#single').multiselect({multiple:false,selectedHtmlValue:'待审核',setWidth: 140+'px'});
		function ps(){
			var data = $("table").getCheckData();
			if(data.length < 1){
				parent.layer.msg("请选择记录。");
				return;
			}
			parent.setData(data);
			window.location.href = "addContractdistribution.html";
		}
		function tableCallBack(my){
			my.find("thead").find("tr").prepend("<td><input type=\"checkbox\"></td>");
			var $tr = my.find("tbody").eq(1).find("tr");
			for(var i = 0 ; i < $tr.length ; i++){
				var html = "<td><input type=\"checkbox\"></td>";
				$($tr[i]).prepend(html);
			}
			my.find("thead").find("input[type='checkbox']").click(function(){
				var $this = $(this);
				my.find("tbody").find("input[type='checkbox']").prop("checked",$this.is(":checked"));
			});
		}
        function getHeight(){
            var myiframeH=$(".main-content").height();
            var _parent=$(window.parent.document);
            _parent.find('body').css('height',(myiframeH+150)+'px');
            _parent.find('.main-position').css('height',(myiframeH+100)+'px');
        };
        $('.main-content').resize(function(){
            getHeight();
        });
	</script>
</body>
</html>